package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Title  string  `gorm:"type:varchar(50);comment:商品名称"`
	UserId int     `gorm:"type:int(11);comment:用户Id"`
	Price  float64 `gorm:"type:decimal(10,2);comment:商品价格"`
	Stock  int     `gorm:"type:int(11);comment:商品数量"`
	Image  string  `gorm:"type:varchar(500);comment:商品图片"`
}
